
import ICapability, { IExpandOut } from "./ICapability";

export default interface ICapabilityProps<T = any> {

    /** 数据 */
    record?: any;

    /** 数据索引 */
    index?: number;

    /** 功能 */
    capability: ICapability<T>[] | ICapability<T>;

    onEnd?: (expand: IExpandOut) => void | Promise<void>
}